<?php
if (!defined('baseinfo')) {
    exitdata();
}   
?>
<div class="wrpSubB mainSB">
    <div class="ttlB ttlFt">
    <div class="wrpTtlB">
    <span class="txtTtlB cutTxt"><?if($data['featurename']){echo $data['featurename'];}else{?>Everything<?}?></span>
    <span class="txtTagtlB cutTxt"></span>
            <span class="ico icoArwDwnTag"></span>
    </div>
           <div class="genMenuListPop tagHome">
            <div class="wrpTagListPop">
                <div class="triang triGen"></div>
                <div class="wrpMLP">
                    <div class="bgMLPT clBg5"></div>
                    <div class="wrpInMLP">
                    <?if(count($data['tagsystem']))
                             {?>
                        <div class="ttlTagList clBd2 clBg3 clTxt3 fs02 cutTxt bdBtm">
                            <span>Recommend tag</span>
                        </div>
                         
                        <div class="mLP clBg5 clTxt3 fs03">
                            <?
                            foreach($data['tagsystem'] as $tagsystem)
                            {
                            ?>
                            <div class="btnMLP" onclick="getseachtag(<?=$tagsystem['tagid']?>,'<?=$tagsystem['name']?>')"><?=$tagsystem['name']?></div>
                            <?
                            
                            
                            
                            }
                            
                            
                            
                            ?>
            
                        </div>
                    <?}?>    
                     <?if(count($data['tagpoppular']))
                             {?>   
                        <div class="ttlTagList clBd2 clBg3 clTxt3 fs02 cutTxt bdBtm">
                            <span>Popular Tags</span>
                        </div>
                        <div class="mLP clBg5 clTxt3 fs03">
                         <div class="btnMLP" onclick="showalldata('<?if($data['featurename']){echo $data['featurename'];}else{?>Everything<?}?>')"><?if($data['featurename']){echo $data['featurename'];}else{?>Everything<?}?></div>
                         <?
                            foreach($data['tagpoppular'] as $tagpoppular)
                            {
                            ?>
                            <div class="btnMLP" onclick="getseachtag(<?=$tagpoppular['tagid']?>,'<?=$tagpoppular['name']?>')"><?=$tagpoppular['name']?></div>
                            <?
                            
                            
                            
                            }
                            
                            
                            
                            ?>
                        </div>
                            <?}?>   
                    </div>
                    <div class="bgMLPB clBg5"></div>
                </div>
            </div>
        </div>
    </div>
   <?
   include("sort.php");
   ?>
</div>